package com.taa.infrastructure.dao;

import com.taa.infrastructure.dao.po.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: taa
 * @Desc: 订单Dao
 * @create: 2025-06-01 16:00
 **/
@Mapper
public interface IOrderDao {

    int insert(Order order);

    int updateOrderStatusSuccess(String orderNo);

    int updateOrderStatusFail(String orderNo);

    Order selectById(Long id);

    Order selectByOrderNo(String orderNo);

    List<Order> selectByUserId(Long userId);

}
